package com.sangmo.fts.basic.service;

import com.sangmo.boot.framework.plugin.dataview.crud.service.BaseViewService;
import com.sangmo.boot.framework.plugin.dataview.data.IDataViewRepo;
import com.sangmo.fts.basic.model.Notice;
import com.sangmo.fts.basic.repo.NoticeRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Exception.class)
public class NoticeEntityService extends BaseViewService<Notice> {

    @Autowired
    private NoticeRepo noticeRepo;

    @Override
    protected IDataViewRepo<Notice> getRepo() {
        return noticeRepo;
    }
}
